package com.lingxin.gps.wap.controller;


import com.jfinal.aop.Before;
import com.lingxin.gps.wap.ApiLoginInterceptor;
import com.lingxin.gps.wap.PageLoginInterceptor;
import com.lingxin.gps.wap.command.CAppIndex;
import com.pisces.core.BaseController;
import com.pisces.core.route.ControllerBind;

@ControllerBind(controllerKey = "/", viewPath = "/")
public class AppController extends BaseController {

	@Before(PageLoginInterceptor.class)
	public void index() {
		doAction(new CAppIndex());
		renderPage("index.html");
	}

	@Before(ApiLoginInterceptor.class)
	public void ajaxIndex() {
		doAction(new CAppIndex());
		renderJson();
	}

}
